package com.lex.data.admin.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.sql.Timestamp;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 菜单表
 * </p>
 *
 * @author lex QQ:609381308
 * @since 2024-07-31
 */
@Getter
@Setter
@TableName("lex_cms_menu")
@Schema(name = "LexCmsMenu", description = "菜单表")
public class LexCmsMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "菜单类型， 0-目录 1-菜单 2-按钮")
    private Integer type;

    @Schema(description = "组件")
    private String component;

    @Schema(description = "状态,1-正常 0-停用")
    private Integer state;

    @Schema(description = "创建时间")
    private Timestamp createTime;

    @Schema(description = "排序")
    private Integer orderNum;

    @Schema(description = "权限")
    private String permission;

    private Integer parentId;

    @Schema(description = "method方法")
    private String method;

    @Schema(description = "重定向")
    private String redirect;

    @Schema(description = "路径")
    private String path;

    @Schema(description = "是否外链, 0-否 1-是")
    private Integer isExt;

    @Schema(description = "是否显示, 0-否 1-是")
    private Integer isShow;

    @Schema(description = "菜单名称")
    private String name;

    @Schema(description = "图标")
    private String icon;

    @Schema(description = "权限标识，前端用来判断是否有按钮权限")
    private String code;

    @Schema(description = "当前活动菜单")
    private String currentActiveMenu;

    @Schema(description = "真实路径")
    private String realPath;

    @Schema(description = "是否携带参数, 0-否 1-是")
    private Integer carryParam;
}
